//- Copyright (C) 2023 Beijing Huaxia Chunsong Technology Co., Ltd. 
//- <https://www.chatopera.com>, Licensed under the Chunsong Public 
//- License, Version 1.0  (the "License"), https://docs.cskefu.com/licenses/v1.html
//- Unless required by applicable law or agreed to in writing, software
//- distributed under the License is distributed on an "AS IS" BASIS,
//- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//- See the License for the specific language governing permissions and
//- limitations under the License.
//- Copyright (C) 2018-Jun. 2023 Chatopera Inc, <https://www.chatopera.com>
//- Licensed under the Apache License, Version 2.0
//- http://www.apache.org/licenses/LICENSE-2.0
extends /admin/include/layout.pug
block content
    .row
        .col-lg-12
            h1.site-h1(style='background-color:#FFFFFF;')
                | 系统模板

                span(style='float:right;')
                    button.layui-btn.layui-btn-small.green(href='/admin/template/imp.html', data-toggle='ajax', data-width='750', data-height='220', data-title='导入系统模板')
                        i.kfont &#xe641;
                        span 导入系统模板

                    a.layui-btn.layui-btn-small.green(href='/admin/template/expall.html', target='_blank')
                        i.kfont &#xe672;
                        span 导出系统模板

            .row(style='padding:5px;')
                .col-lg-12
                    table.layui-table(lay-skin='line')
                        colgroup
                            col(width='15%')
                            col(width='20%')
                            col(width='20%')
                            col
                        thead
                            tr
                                th 分类名称
                                th 分类代码
                                th 创建时间
                        tbody
                            for dic in sysDicList
                                tr
                                    td: a(href="/admin/template/list.html?type=" + dic.id)= dic.name
                                    td= dic.code
                                    if dic.createtime
                                        td= pugHelper.formatDate('yyyy-MM-dd HH:mm:ss', dic.createtime)
                                    else
                                        td